//
//  RailTransportDao.h
//  CJRailTransport
//
//  Created by Hank on 2018/1/3.
//  Copyright © 2018年 amplity. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "FMDatabaseEx.h"
#import "BinningWestModel.h"
#import "BinningEastModel.h"
#import "BinningBracketModel.h"

@interface RailTransportDao : NSObject
// 添加西向装车
+ (BOOL)addBinningWest:(BinningWestModel *)binningWestModel;
// 添加东向装车
+ (BOOL)addBinningEast:(BinningEastModel *)binningEastModel;
// 添加支架装车
+ (BOOL)addBinningBracket:(BinningBracketModel *)binningBracketModel;
// 查询西向装车数据
+ (NSMutableArray *)selectBinningWest:(NSString *)userId;
// 查询东向装车数据
+ (NSMutableArray *)selectBinningEast:(NSString *)userId;
// 查询支架或托盘装车数据
+ (NSMutableArray *)selectBinningBracket:(NSString *)userId;
// 删除西向装车数据
+ (BOOL)deleteBinningWest:(NSInteger)westId;
// 删除东向装车数据
+ (BOOL)deleteBinningEast:(NSInteger)eastId;
// 删除支架或托盘装车数据
+ (BOOL)deleteBinningBracket:(NSInteger)bracketId;
// 更新西向装车
+ (BOOL)updateBinningWest:(BinningWestModel *)binningWestModel;
// 更新东向装车
+ (BOOL)updateBinningEast:(BinningEastModel *)binningEastModel;
// 更新支架或托盘装车
+ (BOOL)updateBinningBracket:(BinningBracketModel *)binningBracketModel;

@end
